@import './base.less';
@import './normalize.less';
// 引入两个初始化

@rootSize: 37.5rem;
//当前的设计稿为375PX,iphone6/7/8;1
//根据设计稿确定根字体，通常是
//设计稿的总宽度的十分之一;


// head ---s---

body {
    background-color: #f7f7f7;
}

.banner {
    position: relative;
    width: 100%;
    height: (196 / @rootSize);
    background-color: rebeccapurple;

    .pic img {
        width: 100%;
    }

    .search {
        position: absolute;
        top: 0;
        left: 0;
        width: (336/ @rootSize);
        height: (30 / @rootSize);
        background-color: #fff;
        border-radius: 15px;
        margin: (5 / @rootSize) (24 / @rootSize);

        i {
            padding-left: 10px;
        }
    }

    span input {
        line-height: (30 / @rootSize);
        color: #585858;
        padding-left: 20px;
        height: 80%;
        width: (300/ @rootSize);
        // background-color: aqua;
        border: 0;
         outline: none;
        //  outline:one去掉搜索框的线条!!!1
        // 这两个语法切记!
        font-size: (14 / @rootSize);
    }
}

//nav 导航页
.nav {
    display: flex;
    width: 100%;
    height: (100 / @rootSize);
     justify-content: center;
     align-items: center;
    justify-content: space-around;  
    background-color: #fff; 
    padding-top: 3px;
 

    div  {
        font-size: (12 / @rootSize);
        text-align: center;
        color: #333333;
       
      
    }
    img {
        width: (53 / @rootSize);
        height: (53 / @rootSize);
        text-align: center;
 
    }
}

// list 列表页
 
.list {
    display: flex;
    width: 100%;
    height: (120 / @rootSize);
   background-color: #fff;
   margin-top: (10 / @rootSize);
   justify-content: space-evenly;
   align-items: center;

   div {
    width: (84 / @rootSize);
    height: (109 / @rootSize);
  
    
    h3 {
        font-size: (12 / @rootSize);
        color: #333333;
        height: (35 / @rootSize);
         line-height: (35 / @rootSize);
          text-align: center;    
    }
    span {
        height: (30 / @rootSize);
        line-height: (30 / @rootSize);
        color: #60a4c1;
        font-size: (9 / @rootSize);
        text-align: center;
        margin-left: 5px;

      }
      img {
        width:(70 / @rootSize);
        height: (40 / @rootSize);
        text-align: center;
        margin-left: 5px;
      }
   }
}

// ad 广告页
.ad {
    position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    width: 100%;
    height: (50 / @rootSize);
    background-color: #fff;
    margin-top: 10px;
    h3 {
        font-size: (16 / @rootSize);
        color: #383838;
    }
    .btn  span {
        position: absolute;
        right: 0;
        bottom: (20 / @rootSize);
        width: (32 / @rootSize);
	height: (15 / @rootSize);   
    text-align: center;
	border-radius: 1px;
	border: solid 1px #b4a;
    font-size: (14 / @rootSize);
     }
}

// goods  商品页
.goods {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    height: (275 / @rootSize);
  background-color: #fff;
}
    .item,
    .item2 {
        width: (170 / @rootSize);
        height: (260 / @rootSize);
  
        border: solid 1px #ebebeb;  
        .pic {
            width: (139 / @rootSize);
            height:(150 / @rootSize);
        padding: 8px;
        }
        p {
            font-size: (14 / @rootSize);
            color: #333333;
            height: (50/ @rootSize);
            line-height: (50 / @rootSize);
            text-align: center;
        }
    span {
         display: block;
        height: (50/ @rootSize);
        line-height: (50 / @rootSize);
        margin-left: (20 / @rootSize);
        color: red;
    }
    i {
        font-size: (14 / @rootSize);
    }
    }
 


// footer

 footer {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #ffffff;
	box-shadow: 0px 0px 0px 0px 
		#dfdfdf;
    width: 100%;
	height: (49 / @rootSize);
	
	
      div {
        width: 25%;
        text-align: center;
        color: #757575;
        
        &:nth-child(1) {
            color: red;
        }
      }  
      .iconfont {
        font-size: (15 / @rootSize);
      }
 }






    



